Skip to content

Commit 154d5c0

Browse files
authored
[css-view-transitions-2] Generated strings start with -ua- (#12238)
Resolution: #12004 (comment) Closes #12004
1 parent fd2689d commit 154d5c0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,14 +815,12 @@ To resolve the [=used value=] of 'view-transition-name' for |element|:
815815
1. If |computed| is <css>none</css>, return null.
816816
1. If |computed| is a <<custom-ident>>, return |computed|.
817817
1. Assert: |computed| is <css>auto</css> or <css>match-element</css>.
818-
1. If |computed| is <css>auto</css>, |element| has an associated [=Element/id=], and |computed| is associated with the same [=tree/root=] as |element|'s [=tree/root=], then return a unique string.
818+
1. If |computed| is <css>auto</css>, |element| has an associated [=Element/id=], and |computed| is associated with the same [=tree/root=] as |element|'s [=tree/root=], then return a unique string starting with "<code>-ua-</code>".
819819
Two elements with the same [=Element/id=] must return the same string, regardless of their [=node document=].
820820

821821
Note: this means that a ''::part()'' pseudo-element wouldn't resolve to its matching element's [=Element/id=].
822822

823-
1. Return a unique string. The string should remain consistent and unique for this element and {{Document}}, at least for the lifetime of |element|'s [=node document=]'s [=active view transition=].
824-
825-
Note: this string is not web-observable, and is used for addressing the element in internal algorithms.
823+
1. Return a unique string starting with "<code>-ua-</code>". The string should remain consistent and unique for this element and {{Document}}, at least for the lifetime of |element|'s [=node document=]'s [=active view transition=].
826824

827825
Note: When used in a cross-document view transition, generated <css>auto</css> values never match, resulting in separate ''::view-transition-group()'' pseudo-elements, one exiting and one entering.
828826

0 commit comments

Comments
 (0)